

import requests
r = requests.post(
    url="https://api.coze.cn/v1/workflow/stream_run",
    headers={
        "Authorization": "Bearer pat_FJVQBe7ue377UWmXW7GCt7e5mX8kAghT0x06OP78fAlj2HGMCcKe5iq4ufUU7kpd",
        "Content-Type": "application/json"
    },
    json={
        "workflow_id": "7533567470469447723",
        "app_id": "7533552086001205282",
        "parameters": {
            "input": "这句话有多少字",
            "level": "2"
        }
    }
)

for rr in r:
    print(rr.decode())